package com.hanfengyi;

import com.baomidou.mybatisplus.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * User: Han
 * Date: 2020/2/17
 * Time: 13:14
 * Description:
 */
@SpringBootApplication
@MapperScan(value = "com.hanfengyi.system.mapper") //扫描包
@EnableTransactionManagement //开启事务支持
public class SystemServer2010 {
    public static void main(String[] args) {
        SpringApplication.run(SystemServer2010.class );
    }
    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}